function delHistoryAddress(id){
	if(id==getCookie("recycleaddressid")){
		setcookie("recycleaddress", "", 30, "/");
		setcookie("recycleaddressid","", 30, "/");
		setcookie("recycleaddressiphone", "", 30, "/");
	}
	var json={"id": ""+id+""}
	$.ajax({
		type: "post",
		datatype: 'json',
		contentType: 'application/json;charset=UTF-8',
		url: ''+httpipstr+'alfa-mobile-ws/rest/historyaddress/deleteHistoryAddress?mobiletoken='+getCookie("mobiletokenuser")+'',
		data: JSON.stringify(json),
		success: function(data) {
			toast.hide();
			showDefault("success","删除成功");
			getHistoryAddress();
		}
	})
}
function onclickaddressli(id,address,iphone){
	setcookie("recycleaddress", address, 30, "/");
	setcookie("recycleaddressid", id, 30, "/");
	setcookie("recycleaddressiphone", iphone, 30, "/");
	location.href="user_function.jsp"
}